package com.kern.rpcserver;

/**
 *
 *  服务端测试类
 * Created by caoshi at 20:55 2021-07-21
 */
public class RpcServerTestMain {

    public static void main(String[] args) {
        System.out.println("======= RPC服务端启动 ======== ");
        // 开启线程启动服务端程序
        new Thread(() -> {
            try {
                RpcServer server = new RpcServer(12000);
                server.start(); // 启动服务
            } catch (Exception e) {
                e.printStackTrace();
            }
        }).start(); // 启动线程
    }

}
